<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * 
 * Class OauthKeySecret
 *
 * @since 2.0
 *
 * @Entity(table="oauth_key_secret")
 */
class OauthKeySecret extends Model
{
    /**
     * 用户ID
     * @Id(incrementing=false)
     * @Column(name="member_id", prop="memberId")
     *
     * @var int
     */
    private $memberId;

    /**
     * app key
     *
     * @Column(name="app_key", prop="appKey")
     *
     * @var string
     */
    private $appKey;

    /**
     * app secret
     *
     * @Column(name="app_secret", prop="appSecret")
     *
     * @var string
     */
    private $appSecret;

    /**
     * 生成时间
     *
     * @Column(name="created_at", prop="createdAt")
     *
     * @var int
     */
    private $createdAt;

    /**
     * 失效时间
     *
     * @Column(name="dead_time", prop="deadTime")
     *
     * @var int
     */
    private $deadTime;

    /**
     * 手机唯一标识符
     *
     * @Column(name="serial_number", prop="serialNumber")
     *
     * @var string
     */
    private $serialNumber;


    /**
     * @param int $memberId
     *
     * @return void
     */
    public function setMemberId(int $memberId): void
    {
        $this->memberId = $memberId;
    }

    /**
     * @param string $appKey
     *
     * @return void
     */
    public function setAppKey(string $appKey): void
    {
        $this->appKey = $appKey;
    }

    /**
     * @param string $appSecret
     *
     * @return void
     */
    public function setAppSecret(string $appSecret): void
    {
        $this->appSecret = $appSecret;
    }

    /**
     * @param int $createdAt
     *
     * @return void
     */
    public function setCreatedAt(int $createdAt): void
    {
        $this->createdAt = $createdAt;
    }

    /**
     * @param int $deadTime
     *
     * @return void
     */
    public function setDeadTime(int $deadTime): void
    {
        $this->deadTime = $deadTime;
    }

    /**
     * @param string $serialNumber
     *
     * @return void
     */
    public function setSerialNumber(string $serialNumber): void
    {
        $this->serialNumber = $serialNumber;
    }

    /**
     * @return int
     */
    public function getMemberId(): ?int
    {
        return $this->memberId;
    }

    /**
     * @return string
     */
    public function getAppKey(): ?string
    {
        return $this->appKey;
    }

    /**
     * @return string
     */
    public function getAppSecret(): ?string
    {
        return $this->appSecret;
    }

    /**
     * @return int
     */
    public function getCreatedAt(): ?int
    {
        return $this->createdAt;
    }

    /**
     * @return int
     */
    public function getDeadTime(): ?int
    {
        return $this->deadTime;
    }

    /**
     * @return string
     */
    public function getSerialNumber(): ?string
    {
        return $this->serialNumber;
    }

}
